#include <OgreResourceGroupManager.h>
#include <OgrePrerequisites.h>
#include <exceptionhandling.h>

#define DLL_EXPORT __declspec(dllexport)

using namespace Ogre;

extern "C" DLL_EXPORT ResourceGroupManager *call_ResourceGroupManager_getSingletonPtr()
{
    return ResourceGroupManager::getSingletonPtr();
}

extern "C" DLL_EXPORT void call_initialiseAllResourceGroups(ResourceGroupManager *ptr)
{
    ptr->initialiseAllResourceGroups();
}

extern "C" DLL_EXPORT void call_addResourceLocation(ResourceGroupManager *ptr, const char *name, const char *locType, const char *resGroup, bool recursive)
{
	call4_v<const String&, const String&, const String&, bool>
		(ptr, &ResourceGroupManager::addResourceLocation, name, locType, resGroup, recursive);
}